package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 微信配置表
 * </p>
 *
 * @author arno
 * @since 2019-04-13
 */
@TableName("info_wx")
public class InfoWx extends Model<InfoWx> {

    private static final long serialVersionUID = 1L;

    /**
     * 微信号
     */
    private String wxNum;

    /**
     * 微信公众号名称
     */
    private String wxName;

    /**
     * 公众号微信APPid
     */
    private String appId;

    /**
     * 公众号微信secretkey
     */
    private String appsecretKey;

    /**
     * 微信支付秘钥
     */
    private String keyval;

    /**
     * 支付商户号 APP 网页 小程序可以绑定一个
     */
    private String mchId;

    /**
     * 微信支付回调域名
     */
    private String returnUrl;

    /**
     * 微信开发者模式服务器配置key
     */
    private String serviceKey;

    /**
     * 微信是否已经验证token 0未认证 1已认证
     */
    private Integer isvalid;

    /**
     * 临时认证token
     */
    private String tokenval;

    /**
     * 微信支付内容属性
     */
    private String body;

    /**
     * 退款证书路径
     */
    private String certurl;

    /**
     * APP开放平台对应商户号APPid
     */
    private String mappId;

    /**
     * APP开放平台对应商户号secretkey
     */
    private String mappsecretKey;

    /**
     * app支付商户号
     */
    private String appMchId;
    
    /**
     * app支付微信支付密钥
     */
    private String appKeyval;
    
    /**
     * app退款证书路径
     */
    private String appCerturl;
    
    /**
     * 小程序appid
     */
    private String programAppid;

    /**
     * 小程序secret
     */
    private String programSecret;

    /**
     * RSA公钥地址
     */
    private String rsaPublickeyUrl;

    public String getRsaPublickeyUrl() {
        return rsaPublickeyUrl;
    }

    public void setRsaPublickeyUrl(String rsaPublickeyUrl) {
        this.rsaPublickeyUrl = rsaPublickeyUrl;
    }

    public String getWxNum() {
        return wxNum;
    }

    public void setWxNum(String wxNum) {
        this.wxNum = wxNum;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppsecretKey() {
        return appsecretKey;
    }

    public void setAppsecretKey(String appsecretKey) {
        this.appsecretKey = appsecretKey;
    }

    public String getKeyval() {
        return keyval;
    }

    public void setKeyval(String keyval) {
        this.keyval = keyval;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getServiceKey() {
        return serviceKey;
    }

    public void setServiceKey(String serviceKey) {
        this.serviceKey = serviceKey;
    }

    public Integer getIsvalid() {
        return isvalid;
    }

    public void setIsvalid(Integer isvalid) {
        this.isvalid = isvalid;
    }

    public String getTokenval() {
        return tokenval;
    }

    public void setTokenval(String tokenval) {
        this.tokenval = tokenval;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getCerturl() {
        return certurl;
    }

    public void setCerturl(String certurl) {
        this.certurl = certurl;
    }

    public String getMappId() {
        return mappId;
    }

    public void setMappId(String mappId) {
        this.mappId = mappId;
    }

    public String getMappsecretKey() {
        return mappsecretKey;
    }

    public void setMappsecretKey(String mappsecretKey) {
        this.mappsecretKey = mappsecretKey;
    }

    public String getProgramAppid() {
        return programAppid;
    }

    public void setProgramAppid(String programAppid) {
        this.programAppid = programAppid;
    }

    public String getProgramSecret() {
        return programSecret;
    }

    public void setProgramSecret(String programSecret) {
        this.programSecret = programSecret;
    }

    public String getAppMchId() {
		return appMchId;
	}

	public void setAppMchId(String appMchId) {
		this.appMchId = appMchId;
	}

	public String getAppKeyval() {
		return appKeyval;
	}

	public void setAppKeyval(String appKeyval) {
		this.appKeyval = appKeyval;
	}

	public String getAppCerturl() {
		return appCerturl;
	}

	public void setAppCerturl(String appCerturl) {
		this.appCerturl = appCerturl;
	}

	@Override
    protected Serializable pkVal() {
        return this.wxNum;
    }

    @Override
    public String toString() {
        return "InfoWx{" +
                "wxNum=" + wxNum +
                ", wxName=" + wxName +
                ", appId=" + appId +
                ", appsecretKey=" + appsecretKey +
                ", keyval=" + keyval +
                ", mchId=" + mchId +
                ", returnUrl=" + returnUrl +
                ", serviceKey=" + serviceKey +
                ", isvalid=" + isvalid +
                ", tokenval=" + tokenval +
                ", body=" + body +
                ", certurl=" + certurl +
                ", mappId=" + mappId +
                ", mappsecretKey=" + mappsecretKey +
                ", programAppid=" + programAppid +
                ", programSecret=" + programSecret +
                "}";
    }
}
